import java.util.Random;
import java.util.Scanner;
public class test
{
    public static void main(String[] args) {
        Random rondom = new Random();
        Scanner scanner = new Scanner(System.in);

        int rand = rondom.nextInt(100);
        System.out.println("输入数字");
        while(true) {
            int bear = scanner.nextInt();
            if(bear>rand) {
                System.out.println("大了");
            } else if(bear==rand) {
                System.out.println("对了");
                break;
            } else {
                System.out.println("小了");
            }
        }
    }

    public static void main12(String[] args) {
        Scanner con = new Scanner(System.in);

        while(con.hasNextInt())
        {
            System.out.println(con.nextInt());
        }
    }
    public static void main11(String[] args) {
        Scanner Bu = new Scanner(System.in);
        System.out.println("输入整数");
        int b = Bu.nextInt();
        System.out.println(b);

        Bu.nextLine();
        System.out.println("输入字符串");
        String a = Bu.nextLine();
        System.out.println(a);

        System.out.println("输入小数");
        double c = Bu.nextDouble();
        System.out.println(c);
    }
    public static void main10(String[] args) {
        System.out.println("2");
        System.out.print("2");
        System.out.printf("%d",2);
    }
    public static void main9(String[] args) {
        Scanner scanner = new Scanner(System.in);

        /*while(scanner.hasNextInt()) {
            int a = scanner.nextInt();
            System.out.println(a);
        }*/
        while(scanner.hasNextLine()) {
            String a = scanner.nextLine();

            System.out.println(a);
        }
    }
    public static void main8(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("输入数字");
        int num = scanner.nextInt();
        System.out.println(num);

        scanner.nextLine();
        System.out.println("输入单词");
        String word = scanner.nextLine();
        System.out.println(word);

        System.out.println("输入小鼠");
        double dec = scanner.nextDouble();
        System.out.println(dec);

    }
    public static void main7(String[] args) {
        int add = 0;
        for (int i = 1; i <= 20; i++) {
            int sum = 1;
            for (int j = 2; j <= i; j++) {
                sum *= j;
            }
            add += sum;
        }
        System.out.println(add);
    }
    public static void main6(String[] args) {
        for (int i = 0; i < 100; i++) {
            if(i%15==0)
                System.out.println(i);
        }
    }
    public static void main5(String[] args) {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum += i;
        }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
        System.out.println(2<1&1/0==0);
        System.out.println(2>1|1/0==0);
    }
    public static void main3(String[] args) {
        System.out.println(1==1);
        System.out.println(1!=1);
    }
    public static void main2(String[] args) {
        int a = 10;
        a = a++;
        System.out.println(a);
    }
    public static void main1(String[] args) {
        int a = 4;
        double b = 5.0;
        a += b;
        System.out.println(a);
        /*double c = a+b;
        System.out.println(c);*/
    }
}
